package main

import (
	// "net/http"

	"fmt"

	"github.com/gin-gonic/gin"
)

// import ceshi "ceshi/ceshi.go"

func woerd(data string){
	fmt.Print(data)
}

func main() {
	router := gin.Default()

	loginEndpoint := func(c *gin.Context) {
		// firsname := c.DefaultQuery("firsname", "guest")
		go woerd("asdf")
        c.String(200, "/v1/users")
		
		// top(firsname)
		// ceshi.goce("asdfd")
    } 



	// Simple group: v1
	v1 := router.Group("/v1")
	{
		v1.GET("/login", loginEndpoint)
		
		// v1.POST("/submit", submitEndpoint)
		// v1.POST("/read", readEndpoint)
	}

	// Simple group: v2
	v2 := router.Group("/v3")
	{
		v2.GET("/login", loginEndpoint)
		// v2.POST("/submit", submitEndpoint)
		// v2.POST("/read", readEndpoint)
	}

	router.Run(":8080")
}

// package goce

